package com.xhtt.modules.inspection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 任务人员表
 * </p>
 *
 * @author xj
 * @since 2019-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class InsTaskUser extends Model<InsTaskUser> {

    private static final long serialVersionUID = 1L;

    public static final String TASK_DATE_ID = "task_date_id";

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 任务id
     */
    private Integer taskId;

    /**
     * 子任务id
     */
    private Integer taskStepId;

    /**
     * 任务对应的日期表的id
     */
    private Integer taskDateId;

    /**
     * 人员
     */
    private Integer userId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 用来判断日巡检任务人员有没有重新排过班1默认2已排过班3备用,当全部重新排版后使用该数据
     */
    private Integer isUpdate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
